package com.ct.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 财务人员审批预支款记录 数据库操作接口
 */
@Mapper
public interface AdvanceApprovalMapper<T, P> extends BaseMapper<T, P> {

    /**
     * 根据AdvanceApprovalId更新
     */
    Integer updateByAdvanceApprovalId(@Param("bean") T t, @Param("advanceApprovalId") Integer advanceApprovalId);

    /**
     * 根据AdvanceApprovalId删除
     */
    Integer deleteByAdvanceApprovalId(@Param("advanceApprovalId") Integer advanceApprovalId);

    /**
     * 根据AdvanceApprovalId获取对象
     */
    T selectByAdvanceApprovalId(@Param("advanceApprovalId") Integer advanceApprovalId);

    T selectByAdvanceId(@Param("advanceId") Integer advanceId);

}
